#import <Cocoa/Cocoa.h>

@interface BWConfigPopUpButton : NSPopUpButton
{
    IBOutlet id delegate;
    NSArray *templateNames;

    BOOL firstTimeAwaken;

    IBOutlet NSWindow *saveSheet;
    IBOutlet NSTextField *saveSheetNameTextField;
}

- (IBAction) saveSheetOKButton: (id) sender;
- (IBAction) saveSheetCancelButton: (id) sender;

@end // BWConfigPopUpButton


@class BWConfigTemplate;

@interface BWConfigPopUpButton (DelegateMethods)

- (NSString *) nameForConfigPopUpButton: (BWConfigPopUpButton *) button;
- (NSString *) categoryNameForPopUpButton: (BWConfigPopUpButton *) button;
- (NSWindow *) windowForConfigSheetForPopUpButton: (BWConfigPopUpButton *) button;
- (void) populateTemplate: (BWConfigTemplate *) template
           forPopUpButton: (BWConfigPopUpButton *) button;
- (void) useTemplate: (BWConfigTemplate *) template
    fromPopUpButton: (BWConfigPopUpButton *) button;

@end // DelegateMethods

